home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
16
/
qmac11a.zip
/
MACROS.MIS
< prev
next >
Wrap
Text File
|
1988-04-17
|
3KB
|
59 lines
* Miscellaneous macros I've found useful. I keep these in my
* CONFIG.DAT file (which I've renamed as QEDHELP.DAT, for use in
* the @h macro shown below.)
*
* The exact behavior of some of these macros depends on the Insert
* and Indent modes. Also, some of them get weird if you try to use
* them on the last line of the file, because they try to cursor down
* out of the file, which they can't. QEdit 2 makes it easy to clean
* up after them, tho. :-)
*
* @c(opy) copies the char in the column above, then moves into the same
* column on the lower line. It's very handy for working with tables, moving
* columns of figures right, etc.
@c macro_begin get_prev cursor_left cursor_down
* @d(up) copies the "word" (as QE2 interprets it) at the cursor to the line
* below. It's real handy for making sequential WriteLn(' commands, etc.
@d macro_begin mark_block_begin word_right mark_block_end word_left cursor_down copy_block unmark_block
* @g(obble) deletes the char at the cursor and moves down a line, staying in
* the same column. It works real good for moving columns of figures left, etc.
* It fails when the cursor is past the end of the line--it gobbles up the
* end-of-line and joins the next line to the current one.
@g macro_begin del_ch cursor_down
* @h(elp) reads my CONFIG.DAT file into QE2 for use as a help file. I prefer
* that to using QE2's own help file capability, because I can use QE2's great
* search command to find what I need help on, and if I wish I can reassign
* commands to different keys while I'm thinking about it. (Note that the use
* of * comments in your .DAT file lets you make it a complete help file.) A
* similar macro could be used to load any particular text file that you
* had frequent use for.
@h macro_begin edit_file 'c:\wp\qedhelp.dat' return
* @i(nsert) inserts spaces at the cursor, similar to the way @c acts.
@i macro_begin ' ' cursor_left cursor_down
* @m(acro) loads a macro file named MACROS.QED from the current directory.
* This lets me leave specialized macro files scattered around the disk,
* for the applications particular to each subdirectory, then load them without
* having to remember their names or type them it.
@m macro_begin main_menu "MRmacros.qed" return
* ^i simulates the type of tabbing that the Borland editors normally do: the
* cursor moves below the first character of the next word in the line above.
* I assign this to ^i and leave the Tab and ShiftTab alone, so I can use
* ^i for "turbo tabbing" and Tab/ShiftTab for tabbing to fixed positions like
* QE2 does. (QE1 had turbo tabs. Perhaps a later release of QE2 will make this
* macro obsolete.)
^i macro_begin cursor_up word_right cursor_down